package com.itshare.video.pojo.po;

import java.io.Serializable;
import java.util.Date;

public class UserMessage implements Serializable {
    private Integer messageId;

    private Integer fromUserId;

    private String fromUserName;

    private String toUserName;

    private Integer toUserId;

    private String toUserMessage;

    private Integer deleteStatus;

    private Integer hasRead;

    private Integer messageType;

    private Date createTime;

    private Date updateTime;

    private Integer videoid;

    private String feedbackTitle;

    private String image;

    private String fromUserPhone;

    private static final long serialVersionUID = 1L;

    public Integer getMessageId() {
        return messageId;
    }

    public UserMessage withMessageId(Integer messageId) {
        this.setMessageId(messageId);
        return this;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getFromUserId() {
        return fromUserId;
    }

    public UserMessage withFromUserId(Integer fromUserId) {
        this.setFromUserId(fromUserId);
        return this;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public UserMessage withFromUserName(String fromUserName) {
        this.setFromUserName(fromUserName);
        return this;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName == null ? null : fromUserName.trim();
    }

    public String getToUserName() {
        return toUserName;
    }

    public UserMessage withToUserName(String toUserName) {
        this.setToUserName(toUserName);
        return this;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName == null ? null : toUserName.trim();
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public UserMessage withToUserId(Integer toUserId) {
        this.setToUserId(toUserId);
        return this;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getToUserMessage() {
        return toUserMessage;
    }

    public UserMessage withToUserMessage(String toUserMessage) {
        this.setToUserMessage(toUserMessage);
        return this;
    }

    public void setToUserMessage(String toUserMessage) {
        this.toUserMessage = toUserMessage == null ? null : toUserMessage.trim();
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public UserMessage withDeleteStatus(Integer deleteStatus) {
        this.setDeleteStatus(deleteStatus);
        return this;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Integer getHasRead() {
        return hasRead;
    }

    public UserMessage withHasRead(Integer hasRead) {
        this.setHasRead(hasRead);
        return this;
    }

    public void setHasRead(Integer hasRead) {
        this.hasRead = hasRead;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public UserMessage withMessageType(Integer messageType) {
        this.setMessageType(messageType);
        return this;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public UserMessage withCreateTime(Date createTime) {
        this.setCreateTime(createTime);
        return this;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public UserMessage withUpdateTime(Date updateTime) {
        this.setUpdateTime(updateTime);
        return this;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVideoid() {
        return videoid;
    }

    public UserMessage withVideoid(Integer videoid) {
        this.setVideoid(videoid);
        return this;
    }

    public void setVideoid(Integer videoid) {
        this.videoid = videoid;
    }

    public String getFeedbackTitle() {
        return feedbackTitle;
    }

    public UserMessage withFeedbackTitle(String feedbackTitle) {
        this.setFeedbackTitle(feedbackTitle);
        return this;
    }

    public void setFeedbackTitle(String feedbackTitle) {
        this.feedbackTitle = feedbackTitle == null ? null : feedbackTitle.trim();
    }

    public String getImage() {
        return image;
    }

    public UserMessage withImage(String image) {
        this.setImage(image);
        return this;
    }

    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    public String getFromUserPhone() {
        return fromUserPhone;
    }

    public UserMessage withFromUserPhone(String fromUserPhone) {
        this.setFromUserPhone(fromUserPhone);
        return this;
    }

    public void setFromUserPhone(String fromUserPhone) {
        this.fromUserPhone = fromUserPhone == null ? null : fromUserPhone.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", messageId=").append(messageId);
        sb.append(", fromUserId=").append(fromUserId);
        sb.append(", fromUserName=").append(fromUserName);
        sb.append(", toUserName=").append(toUserName);
        sb.append(", toUserId=").append(toUserId);
        sb.append(", toUserMessage=").append(toUserMessage);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", hasRead=").append(hasRead);
        sb.append(", messageType=").append(messageType);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", videoid=").append(videoid);
        sb.append(", feedbackTitle=").append(feedbackTitle);
        sb.append(", image=").append(image);
        sb.append(", fromUserPhone=").append(fromUserPhone);
        sb.append("]");
        return sb.toString();
    }
}